﻿using Abp.Dependency;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mt.Site.Core.WorkFlows.Process.Impl
{
    /*
        两种情况：
          1.  个人操作时，可能因为网络状况，点击按钮没反应后，多次点击（js端已拦截，但可能直接通过接口提交）
          2.  在线word, 一个人打开编辑后，另一个不能打开（或只读的方式查看）  
         
    */
    public class WorkFlowConcurrentManager : IWorkFlowConcurrentManager, ISingletonDependency 
    {
        private ConcurrentBag<Dictionary<long, List<string>>> ConcorrentData;

        public WorkFlowConcurrentManager()
        {
            ConcorrentData = new ConcurrentBag<Dictionary<long, List<string>>>();
        }

        public bool IslockedSubmit(long currentUserId, Guid paperId)
        {
            throw new NotImplementedException();
        }

        public bool LockSubmit(long currentUserId, Guid paperId)
        {
            throw new NotImplementedException();
        }
    }
}
